package com.deep.spring.v1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

@Component
public class TestServiceTest {

    @TestInjected
    private TestService testService;

    public void testSayHello() {
        testService.test();
    }

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("com.deep.spring.v1");
        TestServiceTest testServiceTest = applicationContext.getBean(TestServiceTest.class);
        testServiceTest.testSayHello();
    }
}